package com.hsy.order.setting.action

import com.hsy.order.base.data.CommonResult
import com.hsy.order.base.data.UserData
import com.hsy.order.base.http.BaseResponse
import io.reactivex.Observable
import retrofit2.http.*

/**
 * 首页网路请求
 * Created on 2017/12/4.
 *
 * @author Yang
 */
interface SettingService {

    /**
     * 获取个人信息
     * @param params 参数
     */
    @GET("AppHome/my.html")
    fun getUerInfo(@QueryMap params: Map<String, String>): Observable<BaseResponse<UserData>>

    /**
     * 获取个人信息
     * @param params 参数
     */
    @FormUrlEncoded
    @POST("AppHome/updateShopConfig.html")
    fun setShop(@FieldMap params: Map<String, String>): Observable<BaseResponse<CommonResult>>
}